package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import java.util.ArrayList;

import static org.jsola.hr.example.AttendanceSallaryTemplateItemExample.*;

/**
 * 考勤工资模板配置项表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【考勤工资模板配置项表】的参数")
@Data
public class AttendanceSallaryTemplateItemAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = "用工单位ID")
    private String companyId;

    @ApiModelProperty(notes = "新增考勤工资模板配置项集合")
    private ArrayList<AttendanceSallaryTemplateItemAddDTO> attendanceSallaryTemplateItemAddDTOList;

    @ApiModelProperty(notes = N_ATTENDANCE_SALLARY_TEMPLATE_ID, example = E_ATTENDANCE_SALLARY_TEMPLATE_ID)
    @Length(max = 120, message = M_ATTENDANCE_SALLARY_TEMPLATE_ID_MAX)
    private String attendanceSallaryTemplateId;

    @ApiModelProperty(notes = N_CONFIGURATION_NAME, example = E_CONFIGURATION_NAME)
    @Length(max = 120, message = M_CONFIGURATION_NAME_MAX)
    private String configurationName;

    @ApiModelProperty(notes = N_CONFIGURATION_STATUS, example = E_CONFIGURATION_STATUS)
    @Length(max = 120, message = M_CONFIGURATION_STATUS_MAX)
    private String configurationStatus;

    @ApiModelProperty(notes = N_CONFIGURATION_EXPLAIN, example = E_CONFIGURATION_EXPLAIN)
    @Length(max = 120, message = M_CONFIGURATION_EXPLAIN_MAX)
    private String configurationExplain;

    @ApiModelProperty(notes = N_SALLARY_IMPACT, example = E_SALLARY_IMPACT)
    private BigDecimal sallaryImpact;

    @ApiModelProperty(notes = N_IS_SYSTEM_CONFIGURE, example = E_IS_SYSTEM_CONFIGURE)
    private Boolean isSystemConfigure;

    @ApiModelProperty(notes = N_SORT, example = E_SORT)
    private Integer sort;


}

